write data file in same format as original bin file

(can dump with dumpbit)