write insect motion to disk