[task] Add some sub-function for WriteOffMain