Раскройте скобки: He (to told) me that he already (to writte) his composition.
He told me that he had already written his composition.