Degeneracy of holomorphic curves into algebraic varieties