Fix a bug in AbstractByteBuf.writeZero() where the capacity is not auto-expanded