write_vol-methods function

Write a 3d image volume to disk