[worldborder] Added custom implementation of writeChunkToNBT

This is required so that events are not fired for chunks that we are
loading simply to generate the terrain.