write accel data to disk