Found the answer! b is essentially an implicit argument to x so you can set it just like you would for a function:
b
x
x' : I a b => a x' = x { b = b }