Global solution to a phase transition problem of the Allen-Cahn type