As i have understood your doubts please remain calm for the four months period. Proceed after the four months for a resignation and say that you are willing to pay for the notice period. Once that is done you can get a reliving letter from the company. Do not fight with the company it can lead into future problems. Relax and win the race.
All the best
28th December 2013 From India, Hyderabad