The correct answer that will complete the sentence is:
A - to/for/at
So the sentence becomes: “I am writing to apologize for his deplorable behavior at the wedding ceremony.”"To" is used to introduce a verb in its base form; "for" refers to the receiver or object; and "at" indicates a place or event.