Bug in IO fixed.

The HDF5 writing routine was using the global dimensions instead of the process
dimensions when writing out data files. This was caught by a segfault on a
1024x1024 case run on 8 processes. The bugs have been fixed.