Update block.cc

remove redundant ghost updates, implement new function.