You can terminate the contract with a notice whenever you want. If they deduct any money over it then you can take them to court. Nobody is forced to work here and don't let them bully you.