Past participle agreement
Why does the past participle take an 'e' in 'je l'ai écrite'?
Because what was written, a letter, is named before the verb. With the auxiliary avoir [have], the past participle agrees with the direct object only if that object precedes it. Place the letter after, and the agreement vanishes. J'ai écrit une lettre [I wrote a letter].