Who wrote the book of Mordecai in the Bible?

There is no book with that name. You are probably thinking of one of the main characters in the Book of Esther named Mordecai/Mordechai.
There is no book with that name. You are probably thinking of one of the main characters in the Book of Esther named Mordecai/Mordechai.