Looked at your profile, you work at the bank, and took a loan.

Your employer is not forced to give you NOC, or exit permit (especially if you owe them money).

You have an unsettled loan. It's your problem to settle it.

NEWS FLASH: QATAR IS NOT THE ONLY COUNTRY IN THE WORLD, YOU COULD PROBABLY FIND WORK ELSEWHERE...