Nonlinear Alfven waves in inhomogeneous plasmas