MPI_File_write_all for particles