Hello,
In English, the words that describe how the verb happens (adverbs) come after the verbs and objects (if any). That's why it would be better to say "walked alone" in this case. However, in some cases with certain adverbs, it is possible to see the adverb before the verb. Example; he will probably arrive late.
Hope this helps!