You could check it your self, In terms of the standard basis, Ttr(1, 1, 1)= (3, 3, 7), Ttr(1, 0, 0)= (2, 1, 1), and Ttr(0, 0, 1)= (0, 0, 5). In terms of the B basis, those results would be (3, 3, 7)= a(1, 1, 1,)+ b(1, 0, 0)= c(0, 0, 1)= (a+ b, a, a+ c) so we have a+ b= 3, a= 3, a+ c= 7 which gives a= 3, b= 0, c= 4 or <3, 0, 4> (I am using "< >" for vectors written in the B basis). Similarly, (2, 1, 1) gives a= 1, b= 1, c= 0 or <1, 1, 0> and (0, 0, 5) gives < 0, 0, 5>. If you try to do everything in the "B" basis: multiply your "TB" matrix by <1, 0, 0>, <0, 1, 0>, and <0, 0, 1> you get the first, second, and third columns, respectively. And they are NOT the same.
You error was when you formed the "S-1" transformation matrix: you used the B basis vectors as rows and they should be columns. Use
\left(\begin{array}{ccc} 1 & 1 & 0 \\ 1 & 0 & 0 \\ 1 & 0 & 1\end{array}\right)
instead and you should be alright.