added conditional transitions to FSM write fork based on read/write completion signals