I had this book back around kindergarten and now I’m a senior. I remember it was a block book, (I could be wrong, however) it was small, and it was a Halloween book. Sadly, the only piece of plot I remember is that the ghost ate candy, and then when it got scared, the candy fell out of him. I hope this helps!!
Pretty sure this is Ghost Eats It All by Janee Trasler.