There *should* be WiFi the entire flight. I say should because there have been a few A330-900s with problems with the WiFi this summer but hopefully that's not an issue for you. If it operates as planned,
* Messaging is free
* As a T-Mobile customer, your in-flight WiFi is also free