Convergence of a penalty-finite element approximation for an obstacle problem