You need the past perfect form—"had written"—because two events happened in the past. First, Omar wrote the letter; then, it was read by someone. Since the writing happened before the reading, we use past perfect for the first event, and simple past for the second event.