you probably agreed to one of the two things when you took the job:
1. one-year stay, or full repayment.
2. No repayment clause - probably too good to be true.