Writes a nodelist in HDF5 format.
Arguments:
nodelist: The nodelist to be written.
doCompress: The compression level that should be used on the datasets, betwen 0-9 where 0 is no compression and 9 is highest compression.
Returns 1 upon success, otherwise 0.