First Block Mmap Version of Logger Module

add block mode: when there is not enough data to mmap, block the user program
Bug to fix: How to swap out all the log in logger? At last, maybe there is not enough data to mmap