kfs: supports read/write data as ramfs

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>