write tlog entries in an atomic fashion