On a class of nonlinear free boundary problems