Bugfix in NetCDF output of kernel wavefields

Fixed a bug, where dumping buffer was partially overwritten before being dumped to disk.
Important!