A Jesus question

The book of Mark is attributed to John Mark, a young disciple who traveled with Paul and Barnabus. John Mark left them and Paul was so angry that it led to an argument with Barnabas causing them to separate and John Mark went with Barnabas. So how does his record end up as one of…