[PATCH 4.9 33/47] libfs: fix error cast of negative value in simple_attr_write()