In AmE, one "keeps a diary" or "writes in a diary." Saying "write a diary" implies that the person is writing a book, or a work of fiction, not a personal day-by-day memoir. By definition a diary is the personal accounts/reflections/feelings of the author. Usually folks that keep diaries use blank books/journals that are designed for that specific purpose.