Jennette McCurdy did not write "Homeless Heart." The song "Homeless Heart" was written and originally recorded by Josh Kelley, released in 2004 on his album Almost Honest.
McCurdy released music as a country-pop artist (2008–2012), including:
McCurdy does have a song titled "Not That Far Away" (her 2010 debut single/EP title). But "Homeless Heart" is entirely Josh Kelley's work—released six years earlier, different genre (acoustic rock vs. country-pop), no connection.
Summary:
Three different works, three different creators. Title collisions happen.