[PATCH openEuler-1.0-LTS 095/316] libfs: fix error cast of negative value in simple_attr_write()