Fetching details from the dictionary...

to write (e.g. a letter); to draw up (a document); to take down (e.g. notes)
to have (lunch, dinner, etc.); to eat
感謝の手紙を丁寧にしたためた。
I carefully wrote a thank-you letter.
日記を毎晩したためるようにしている。
I make a point of writing in my diary every night.
急いで報告書をしたためて提出した。
I quickly wrote up the report and submitted it.