redis-trib: fixed slot allocation when --replicas is used.
Fix broken rdbWriteRaw() return value check in rdb.c.

Thanks to @PhoneLi for reporting.