If you are writing a diary in a dream, it shows that you wish to talk with someone about your life, problems and dreams, but there is no one who you could trust, therefore you trust only yourself.
Diary dream meaning
Read more about dreaming of Diary in other dream meanings interpretations.