Cheating

I joined in a company as a trainee, they told me that they will give training for me in the respective field for 2 months, also mentioned it can be taken upto 3 months. Also they told that, after 2 months company will take me as an employee. During the training period they didn't given any training for me. After 2 month they told that the training is extending to 1 more month. After 3 month they given one more document stating that my date of joining is from the completion date of training, and they told that i have 6 month probation period. After this probation you will get salary increment and all the necessary benefits. After completing 6 month probation, they didn't raised my salary. Till now they didn't given me any training. They hired me in a designation of developer trainee and now I'm doing some document works that are not related to the designation. I didn't have any career growth, not only me the co employees also facing the same issue. I have 2 year agreement with the company. Now i completed 1 year. In between more than 6/7 employees came into my team and they got frustrated with the company policies and they resigned. When i ask to increase my salary, they are not ready to do it. So i need to leave this company, but the company forcing me to work, they are telling that I've signed 2 year agreement so i need to be here for 2 year else I'll face consequences for the same. I'm mentally down, in my career i don't have any knowledge. Is there any way to get out of this.