It is encouraging to note that you acknowledge the wrong you did. You could speak lies and wrong defend yourself. You spoke the truth and abstained from the sin of lies.
It is natural for you to be angry when belittled. Our advise to you is to be patient. Do that for the pleasure of Allah. You will feel contentment of heart. You should also think that life is a learning experience. If this did not happen to you, you would not know pain and how to be patient. This exercise will be very useful to you in life. Remember, life is filled with much trials and only the patient ones can successfully persevere.
and Allah Ta’ala Knows Best
Mufti Ebrahim Desai