Geodesic completeness and homogeneity condition for cosmic inflation