[dataio] Properly print the mode of parallel write to stdout

For some weird reasons MPI_Gather did not work properly