Acknowledge that you have hurt his feelings and are truly sorry for it. Iterate that you want to make it better and learn from this experience. Avoid using condescending words that might hurt him more. Remember that while you might want to justify your actions, this is a letter asking for forgiveness.