fix bug at ramfs_i_read, returning wrong read length