Emran Hashmi to write a book