"To write an invitation" means to compose a message or letter that asks someone to come to an event or gathering.