triggered_data_writer::write checks entry reset flag when not recording.

This fixes #4, in which the first recording triggered by a second run of
jstim would prematurely terminate.