I need to show the statement in the title, and would like to have some checking on the argument below.
Let $f: S^1 \to X$ be a map, $p \in X$, $e_p: S^1 \to X$ be the constant map, i.e. $e_p(z) = p,\forall z \in S^1$.
The condition $f \simeq e_p$ implies the existence of a map $H: S^1 \times I \to X$ such that $H(z,0) = f(z)$, $H(z,1) = e_p(z) ,\forall z \in S^1$. My intuition tells me that, because of the way $H(z,1)$ is defined, the domain of this map can be re-written as $$ (S^1 \times I)/(S^1 \times \{1\}), $$ which is homeomorphic to $D^2$. So this modified homotopy is the extension we're looking for. But I'm not sure how to make this argument precise and which conditions that I need to check.