[PATCH 84/87] libfs: fix error cast of negative value in simple_attr_write()