fwrite for .idata