[PATCH 4.14 40/60] libfs: fix error cast of negative value in simple_attr_write()