Writes an HL_Node attribute to an HDF5 file.
Arguments:
rootGrp: The root group of the file.
parentNode: The parent node of the attribute to be written.
parentName: The name of the parent node.
childNode: The node to be written.
childName: The attribute's name.
Returns 1 upon success, otherwise 0.