add fileStreaWriteLock to filestream write