FITS writing from cube instance

`write` should be a method, not an independent function