So /ghost I'm not sure exactly how it works, but what it does is update blocks nearby which would eliminate ghost blocks.
If you do F3+A then that reloads the chunks, sometimes that helps. Most of the time with ghost blocks you would have to teleport away and teleport back or relog for them to be fixed.