write data to /tmp