Biharmonic curves on an invariant surface