The NOC only gives you the chance to comeback if another job is offered but as per the loan it will have to be settled before leaving the country, otherwise you won't be alloewed to exit or even could get detained by Police dept in the airport.

Visualize a way to clear the loan...then make a way to exit!!

regards!!