Was the loan any way connected to your visa ?

But no, you will still owe the money even if you are no longer in the country, unless your loan contained some provision to be canceled if you were...