As noted, you need to be careful making assertions about $xy$. Recall that the pumping lemma says that if $L$ is a regular language, then there is a positive integer $p$ such that any string $s\in L$ can be written as $s=xyz$ where
- $|xy| \le p$,
- $|y| > 0$,
- $xy^iz\in L$ for all $i=0,1,\dotsc$.
so in your example all you know is that $|xy|\le p$. You certainly can't assert that $|xy|=2p+2$.
All is not lost, though. If you assume that $L$ is regular and let $s=a^{2p}ba^p$ (notice that I chose a different string to pump), then since $|xy|\le p$, you know that $xy$ "lives" among the first group of $a$'s, and so $xy=a^k$, for some $k\le p$. Hence $y=a^t$ for some $0<t\le p$ and so the PL assures us that $xy^iz\in L$ and we have $xy^iz=a^{2p+(i-1)t}ba^p$. [Do you see why?] Now all you have to do is pick some $i$ so that $xy^iz\notin L$ to establish a contradiction and thus show that $L$ isn't regular.
I'll leave the rest for you: what $i$ can you use to show that $xy^iz\notin L$?