i dont think that the company can hold you if you resign, but i doubt if they will give you a release, probably they will just cancel your visa and send you back home...