added code to write source bank in HDF5 parallel