The short answer:
echo "some data for the file" >> fileName
echo doesn't deal with end of line characters (EOFs) in an ideal way. So, if you're gonna append more than one line, do it with
printf "some data for the file\nAnd a new line" >> fileName
> operators are very useful for redirecting output of commands, they work with multiple other bash commands.