my_fwrite that dont need pos end len