You can say "I'm on my way" to explain that you are travelling and it is obvious from the context where you are travelling to. If it's not obvious, add an adverb or expression place e.g. "I'm on my way home /. to you / there / to your house / back" In your first example, you need to add "home" because otherwise, I would not be sure where you were on your way to.
"When I get home" refers to the time when you arrive home. You don't need to add the word "back" but sometimes people do.