Pakistan only provided training grounds for Afghan mujahideen. The war was fought and won by Afghans with assistance of America's money and arms and ammunition. Saudi also pumped few billion dollars to the war. If China assists Pakistan in a war against enemy, it cant be declared Chinese victory, it would be Pakistan's. In the same way it was victory of Afghans.
About Pakistan giving tribals task of safeguarding western border, is just an empty talk. First of all Durand line is not like Indo-Pak border. Secondly no agreement or treaty of state of Pakistan has taken place with tribals regarding this matter. Thirdly paramilitary scouts and militias are stationed in FATA since British times, they do the guarding not regular tribesmen. Fourthly, its tribal on both sides of Durand who have kept the border bara-i-naam and porous.
Not just Baluchestan, there were elaborate plans for Pashtunistan, because of Afghan commies.