Consolidated code to reduce size. Also fixed multi-flushing of dirty block (maybe needs more)
Consolidated code to reduce size.
Also fixed multi-flushing of dirty block (maybe needs more)

bnahill/FLogFS,bnahill/FLogFS