Minor improvements
Added function for writing xfs format structures