Is it possible to write a custom text on Google Maps API v3 next to the marker, or I can use only the info window to do that?
It the text is static, you can use a marker and an image :
var label = new google.maps.Marker({ position: new google.maps.LatLng(50,50), map: map, icon: "/images/mytextasanimage.png" });