If it was stated in your contract that the company will provide NOC and if u finish ur contract and they didn't give u NOC,the best thing that u should u is ask help from the labour office.